package com.jy.wms.dao;

import com.jy.wms.common.base.BaseDao;
import com.jy.wms.pojo.WmsLoading;
import com.jy.wms.pojo.WmsShipmentOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: WmsLoadingMapper.java
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author Yjs
 * @Date Wed Jan 31 16:01:23 GMT+08:00 2018
 */
public interface WmsLoadingMapper extends BaseDao<WmsLoading> {
    /**
     * 分页查询出库发运信息
     *
     * @param entity
     * @param fyztList
     * @param jhztList
     * @return
     */
    public List<WmsShipmentOrder> baseSelectPage(@Param("WmsShipmentOrder") WmsShipmentOrder entity, @Param("fyztList") List<String> fyztList, @Param("jhztList") List<String> jhztList);

    /**
     * 查询发运订单信息
     *
     * @param fybh
     * @return
     */
    List<WmsShipmentOrder> searchFydd(@Param("fybh") String fybh);
    /**
     * 创建装车单信息
     *
     * @param entity
     * @return int
     */
    public Integer addLoading(@Param("WmsLoading") WmsLoading entity);

    /**
     * 更改装车单号
     *
     * @param entity
     * @return
     */
    public Integer updateZcdbh(@Param("WmsLoading") WmsLoading entity);
    /**
     * 模糊查询装车单编号
     *
     * @param zcdbhTime
     * @return
     */
    public String searchZcdbh(@Param("zcdbhTime") String zcdbhTime);

    /**
     * 承运人模糊查询
     *
     * @param cyrmc
     * @return
     */
    public List<WmsLoading> searchCyr(@Param("cyrmc") String cyrmc,@Param("hzid") String hzid,@Param("ckid") String ckid);
}
